#include<bits/stdc++.h>
using namespace std;

int main() {
	string s;
	cin >> s;
	cout << s[1];
	cout << s[0];
	cout << s[2] << s[3] << s[4] << endl;
	return 0;
}

